import axios from '@/util/request'

export const registryReq = user =>{
    return axios({
        url:'/user/registry',
        method:'post',
        data:user
    })
}
export const deleteById = id =>{
    return axios({
        url:'/admins/delete',
        method:'get',
        params:{id}
    })
}
export const updateById = data =>{
    return axios({
      url:'/admins/update',
      method:'post',
      data: data
  })
}
export  const queryPage = (acount, aremarks, pageNum, pageSize) => {
    return axios({
      url: '/admins/queryByPage',
      method: 'get',
      
      params: {
        acount,
        aremarks , 
        pageNum,
        pageSize
      }
    });
  };
export const insertSave = data =>{
    return axios({
        url:'/admins/add',
        method:'post',
        data:data
    })
}